package com.coach.dao;

import java.util.List;
import java.util.Map;

import com.coach.entity.User;
import com.googlecode.ehcache.annotations.TriggersRemove;

@MyBatisRepository
public interface UserDAO{
  

  public List<User> getUserList(Map<String,Object> map) throws Exception;
  
  public List<User> checkLogin(Map<String,Object> map) throws Exception;
  
  public int checkPhoneNumberExist(String phoneNumber) throws Exception;
  

  public  void addUser(User u) throws Exception;


  public void updateUser(User u) throws Exception;
  
  public void deleteUser(User u) throws Exception;
  
  public User getUserById(int id) throws Exception;
  
  

}
